#include "widget.h"

#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);

    QString style;
    style += "QCheckBox {\
                    font-size: 20px;\
                }";

    style += "QCheckBox::indicator {\
                width: 30px;\
                height: 30px;\
            }";

    style += "QCheckBox::indicator::unchecked {\
             image : url(:/image/checkbox_unchecked.png);\
            }";

    style += "QCheckBox::indicator::unchecked:hover {\
             image : url(:/image/checkbox_unchecked_hover.png);\
            }";

    style += "QCheckBox::indicator::unchecked:pressed {\
             image : url(:/image/checkbox_unchecked_pressed.png);\
            }";

    style += "QCheckBox::indicator::checked {\
             image : url(:/image/checkbox_checked.png);\
            }";

    style += "QCheckBox::indicator::checked:hover {\
             image : url(:/image/checkbox_checked_hover.png);\
            }";

    style += "QCheckBox::indicator::checked:pressed {\
             image : url(:/image/checkbox_checked_pressed.png);\
            }";

    a.setStyleSheet(style);

    Widget w;
    w.show();
    return a.exec();
}
